import Vue from 'vue'
import App from './App'
import http from './http/http.js'
import api from './http/api.js'
import uView from "uview-ui";
import {popUp as wx} from '@/js_sdk/popUp-tips/popUpTips/index.js';
Vue.use(uView);
Vue.config.productionTip = false
Vue.prototype.$wx = wx('./static/image/loading.png')//加载动画的图片地址

Vue.prototype.$http = http
Vue.prototype.$api = api

//引入websocket文件
import wsRequest from "./js_sdk/websocket/websocket.js"
//开启websocket
let websocket = new wsRequest("ws://82.157.123.54:9010/ajaxchattest",5000)
//挂载到全局
Vue.prototype.$socket = websocket

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
